package com.training.java.core.collections.immutablecar.pre15;

public  final class Car {
	
	private String make;
	private String model;
	private int year;
//	private int price;

	public Car( String make, String model,
			int year) {
		
		this.make = make;
		this.model = model;
		this.year = year;
		
	}


	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public int getYear() {
		return year;
	}

//	public int getPrice() {
//		return price;
//	}
//
//	public void setPrice(int price) {
//		this.price = price;
//	}

	@Override
	public String toString() {
		return "Car [make=" + make + ", model=" + model + ", year=" + year
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}

	
}
